package thinkinjava4.ch10;

public class DotNew {
    public class Inner {
        public DotNew outer() {
            return DotNew.this;
        }
    }

    public static void main(String[] args) {
        DotNew dn = new DotNew();
        DotNew.Inner dni1 = dn.new Inner();
        System.out.println("dni1 outer:" + dni1.outer().hashCode());
        dn.func();
    }

    public void func() {
        DotNew.Inner dni2 = new Inner();
        System.out.println("dni2 outer:" + dni2.outer().hashCode());
    }
}
